package com.intellagric.interfaces.product;

import com.intellagric.common.bean.LayuiDataGridResult;
import com.intellagric.common.bean.ResponseMessage;
import com.intellagric.pojo.Product;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface ProductService {
    ResponseMessage selectProductById(String id);

    Product queryProductById(String id);

    ResponseMessage insertProduct(Product Product);

    ResponseMessage deleteProduct(String id);

    ResponseMessage editProduct(Product Product);

    LayuiDataGridResult getList(int page, int rows);

    LayuiDataGridResult getListByCategoryId(int page, int limit, String categoryId);

    LayuiDataGridResult batchDeleteProduct(String[] ids);

    LayuiDataGridResult getProductByKeyword(int page,int limit,String keyword);


    List<Map<String, String>> getPropCount();

    LayuiDataGridResult addConsumableExcelData(MultipartFile uploadFile);

    void export(HttpServletRequest request, HttpServletResponse response);

}
